package com.hly.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hly.common.utils.PageUtils;
import com.hly.product.entity.AttrEntity;
import com.hly.product.vo.AttrRespVo;
import com.hly.product.vo.AttrVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dudulu
 * @email 52039@Miku.com
 * @date 2021-03-27 12:08:09
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBaseAttrPage(HashMap<String, Object> params, Long cateLogId, String type);

    void saveAttr(AttrVo attrVo);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrRespVo attrRespVo);

    PageUtils queryAssAttrPage(HashMap<String, Object> params );

    void removeAssByIds(List<Long> asList);

    void removeBusByIds(List<Long> asList);

    List<Long> selectSearchAttrIds(List<Long> attrIds);

    PageUtils listByCatelogId(Long catelogId, Map<String, Object> params);
}

